﻿@model Pro260Website.Models.ListingViewModel<Domain.Entity.Game>
@{
    ViewBag.Title = "History";
}

<h2 class="title @Html.GetColor(Request.Cookies["color"])">Game History</h2>
<br/>
<div class="actionButtons @Html.GetColor(Request.Cookies["color"])">
    @Html.ActionLink("Clear History", "ClearHistory")
</div>

@if (@Model.Items != null)
{
    foreach (var game in @Model.Items)
    {
        Html.RenderPartial("GameSUmmary", game);
    }
    <div id="pagerForm" class="pager @Html.GetColor(Request.Cookies["color"])">
         @Html.PageLinks(Model.PagingInfo, i => Url.Action("ShowHistory", "Game", new { page = i, pageSize = Model.PagingInfo.ItemsPerPage }))
    </div>
}
else
{
    <h1 class="title @Html.GetColor(Request.Cookies["color"])">No Game History</h1>
}


